package com.aiti.lulian.service.impl;

import com.aiti.base.core.base.service.iml.BaseSerivceImpl;
import com.aiti.lulian.entity.CustomerCollaborator;
import com.aiti.lulian.mapper.CustomerCollaboratorMapper;
import com.aiti.lulian.service.ICustomerCollaboratorService;
import com.aiti.lulian.vo.CustomerCollaboratorVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CustomerCollaboratorServiceImpl extends BaseSerivceImpl<CustomerCollaboratorMapper, CustomerCollaborator> implements ICustomerCollaboratorService {

    private final CustomerCollaboratorMapper customerCollaboratorMapper;

    public CustomerCollaboratorServiceImpl(CustomerCollaboratorMapper customerCollaboratorMapper) {
        this.customerCollaboratorMapper = customerCollaboratorMapper;
    }

    @Override
    public List<Map<String, String>> getCollaboratorList(List<String> customerIds) {
        return customerCollaboratorMapper.selectCollaboratorList(customerIds);
    }

    @Override
    public Map<String, Map<String, String>>getRelatedPersonnelList(String customerId) {
        return customerCollaboratorMapper.selectRelatedPersonnelList(customerId);
    }

    @Override
    public List<CustomerCollaboratorVo> getCustomerCollaboratorList(String customerId) {
        return customerCollaboratorMapper.selectCustomerCollaboratorList(customerId);
    }
}